<?php

class VGaveta extends VListaCrud {
	public function sqlLista(){
		$this->sql = "SELECT idGaveta, nome as gaveta FROM gaveta";
	}
	public function getNome(){
        $tag = $this->editavel?"":" disabled";
		$html = new VInputText("nome", $this->modelo->nome, "Gaveta", 'size="60" maxlength="60"'.$tag);
		return  "$html";
	}

 	public function getForm(){
 		$html = parent::getForm();
		if ($this->operacao == "edit"){
			$html .= "<br><a href='?app=ProcessoGaveta&pesquisa={$this->modelo->nome}'>Veja os processos que est&atilde;o nessa gaveta</a>";
		}
		return $html;
 	}
}
?>